
@echo off

if "%1"=="" (
    echo need a file to process.
) else (
    if not exist "%1.nobot.log" (
        call kickbot.cmd "%1"
    )
    del /q "%1.sorthost.log" 1> nul 2>nul
    linereplace "%1.nobot.log" /-  " request http://" "\t" "/" "\t" | select -c 1 /- /- | deduplinew 0 /- temp.log
    sortw -n1 temp.log_all.txt "%1.sorthost.log"
    del /q temp.log 1> nul 2>nul
    del /q temp.log_all.txt 1> nul 2>nul
)

